import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:xindong/models/user/xindong_kongjian_user.dart';
import 'package:xindong/routes/tab_moments/view/xindong_dongtai_list_view.dart';
import 'package:xindong/widgets/common/xindong_app_bar.dart';
import 'package:xindong/widgets/container/xindong_getx_builder_container.dart';

import 'controller/xindong_user_moment_vm.dart';

class XinDongUserMomentsYeMian extends StatelessWidget {
  final String userId;
  final String name;

  const XinDongUserMomentsYeMian({super.key, required this.userId, required this.name});

  @override
  Widget build(BuildContext context) {
    final controller = Get.put(XinDongUserMomentVM(userId: userId));
    return Scaffold(
      appBar: XinDongAppBar("$name的动态"),
      body: XinDongGetBuilder<XinDongUserMomentVM>(
        builder: (viewClass) {
          return XinDongDongTaiListView(viewClass: viewClass, emptyTips: "还没发布动态哦");
        },
      ),
    );
  }
}
